package exception;

public class FinallyDemo
{
    public static void main(String[] args)
    {
        String s = null;
        try
        {
            s = "aaa";
            System.out.println(s.length());
            return;
        }catch (Exception e)
        {
            System.out.println("There is an error");
        }finally
        {
            System.out.println("finally execute");
        }
        System.out.println("program is over");
    }
}
